home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat2 / flink.nr < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. Flink(2)                   Oct. 7, 1991                  Flink(2)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        Flink - create a new link to a file
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        LONG Flink( char *oldname, char *newname );
  12.  
  13. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  14.        _✓F_✓l_✓i_✓n_✓k creates a new name (a "hard link") for the file cur-
  15.        rently named _✓o_✓l_✓d_✓n_✓a_✓m_✓e.  If the _✓F_✓l_✓i_✓n_✓k  call  is  successful,
  16.        then  after the call the file may be referred to by either
  17.        name, and a call to _✓F_✓d_✓e_✓l_✓e_✓t_✓e on either name will not affect
  18.        access  to  the  file through the other name.  _✓o_✓l_✓d_✓n_✓a_✓m_✓e and
  19.        _✓n_✓e_✓w_✓n_✓a_✓m_✓e must both refer to  files  on  the  same  physical
  20.        device. Note also that not all file systems allow links.
  21.  
  22. R✓RE✓ET✓TU✓UR✓RN✓NS✓S
  23.        0 on success
  24.  
  25.        EXDEV  if  _✓o_✓l_✓d_✓n_✓a_✓m_✓e and _✓n_✓e_✓w_✓n_✓a_✓m_✓e refer to files on different
  26.        physical devices
  27.  
  28.        EINVFN if the file system does not allow hard links
  29.  
  30.        EFILNF if the file named _✓o_✓l_✓d_✓n_✓a_✓m_✓e does not currently exist
  31.  
  32. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  33.        _✓F_✓r_✓e_✓n_✓a_✓m_✓e(2), _✓F_✓s_✓y_✓m_✓l_✓i_✓n_✓k(2)
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. Version 0.9          MiNT Programmer's Manual                   1
  65.  
  66.  
  67.